<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false"%>
<html>
<head>
    <jsp:include page="../layout/_import.jsp"></jsp:include>
    <link rel="stylesheet" href="../css/vetsearch_result.css">
    <title>医生信息添加界面</title>
</head>
<body>
<jsp:include page="../layout/_nav.jsp"></jsp:include>
<header>
    <div class="jumbotron jumbotron-fluid">
        <div class="container">
            <h1 class="display-4">社区宠物诊所·医生信息添加</h1>
            <p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
        </div>
    </div>
</header>
<main>
    <div class="container">
        <div class="alert alert-success" role="alert" hidden>
            添加成功！
        </div>
        <div class="alert alert-danger" role="alert" hidden>
            添加失败！
        </div>
        <form action="/vet" method="post">
            <input type="hidden" name="m" value="add">
            <input type="hidden" name="id" value="${vet.id}">
            <div class="row">
				<span class="col col-md-2">
					医生姓名
				</span>
                <div class="col col-md-10">
                    <input type="text" class="form-control" name="name">
                </div>
            </div>
            <div class="row">
            <span class="col col-md-2">
                专业特长
            </span>
                <div class="col col-md-10">
                    <c:forEach items="${specs}" var="s">
                        <input type="checkbox" name="specID" value="${s.id}">${s.name}<br>
                    </c:forEach>
                </div>
            </div>
            <div class="row">
                <input type="submit" class="btn btn-primary" value="保存"/>
                <a class="btn btn-secondary" href="/vet">返回列表</a>
            </div>
        </form>
    </div>

</main>

</body>

</html>
